/**
 * Project oo_thread
 */


#include "MyTask.h"
#include <ctime>
#include <stdlib.h>
#include <iostream>
#include <unistd.h>
using std::endl;
using std::cout;

/**
 * MyTask implementation
 */


/**
 * @return void
 */
void MyTask::process() {
      srand(time(nullptr));
        int num = rand() % 100;
        cout << "produce a num :" << num << endl;
        sleep(1);
}
